#pragma once

#define	BUFFER_SIZE		(20*1024)
#define 	RCV_MSG			(WM_USER + 0x0800)
#define 	MAIN_DLG_ID		(0)
#define 	MENU_DLG_ID		(1)
#define 	EMPLOYEE_DLG_ID	(2)
#define 	CUSTOMER_DLG_ID	(3)
#define 	PERMISSION_DLG_ID	(4)
#define 	COST_DLG_ID		(5)
#define 	STATISTICS_DLG_ID	(6)
#define 	SETTING_DLG_ID	(7)


#define CMD_TGETXMLVER		(0XFF010000)
#define CMD_RGETXMLVER		(0XFF010001)
#define CMD_TGETXMLMENU	(0XFF010002)
#define CMD_RGETXMLMENU	(0XFF010003)





#define CMD_TADDMENU		(0XFF010100)
#define CMD_RADDMENU		(0XFF010101)
#define CMD_TEDITMENU		(0XFF010102)
#define CMD_REDITMENU		(0XFF010103)
#define CMD_TDELMENU		(0XFF010104)
#define CMD_RDELMENU		(0XFF010105)
#define CMD_RADDXML		(0XFF010106)
#define CMD_REDITXML		(0XFF010107)
#define CMD_RDELETEXML		(0XFF010108)



#define CMD_TADDEMP		(0XFF010200)
#define CMD_RADDEMP		(0XFF010201)
#define CMD_TEDITEMP		(0XFF010202)
#define CMD_REDITEMP		(0XFF010203)
#define CMD_TDELEMP		(0XFF010204)
#define CMD_RDELEMP		(0XFF010305)
#define CMD_TSRCEMP		(0XFF010206)
#define CMD_RSRCEMP		(0XFF010307)


#define TMO_RADDMENU		(10)
#define TMO_REDITMENU		(10)
#define TMO_RDELETEMENU	(10)


typedef struct _XMLVersion_
{
	u32	m_nMenuVer;
	u32	m_nConfVer;
}XMLVersion;

typedef struct _MenuType_
{
	CString				m_nName;
	CString				m_nIndex;
	u32					m_nType;
	CString				m_nAbbr;	/*Abbreviation*/
	u32					m_nUnit;
	CString				m_nPrice;	
	CString				m_nList;
	CString				m_nIntro;
	BOOL				m_nPackage;
	CString 				m_nImagePath;
	CString 				m_nRemark;

}MenuType;

typedef struct _CMDRes_
{
	u32					m_nRet;
}CMDRes;

